const mongoose = require('../index');

let userSchema = new mongoose.Schema({
    //属性名:数据类型
    name:String,
    age:Number
});
// 6. 创建一个文档对象模型 - 默认会给集合名称加一个s
let userModel = mongoose.model('users',userSchema);
module.exports = userModel;